package com.mxdx.edu.common;

/**
 * web 页面controller异常封装
 * 
 * @author wangyuan
 * @date 2016-11-24
 */
public class WebAppException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private final String errorCode;

    public WebAppException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }


    public WebAppException(String errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }


    public String getErrorCode() {
        return this.errorCode;
    }

}
